import { Column, CreateDateColumn, Entity, UpdateDateColumn } from 'typeorm';

@Entity('store')
export class Store {
  @Column({ length: 256, primary: true })
  id: string;

  @Column({ length: 100 })
  name: string;

  @Column()
  type: string;

  @CreateDateColumn({ comment: '创建时间', type: 'datetime', nullable: true })
  create_time: Date;

  @UpdateDateColumn({ comment: '更新时间', type: 'datetime', nullable: true })
  update_time: Date;
}
